package com.wkq.dao;

import com.wkq.domain.Orders;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IOrdersDao {

    @Select(" select o.id, o.orderNum, o.orderTime, o.peopleCount, o.orderDesc, o.payType, o.orderStatus, o.productId, o.memberId" +
            " from orders as o ")
    public List<Orders> findAll (int page, int size);

    @Select(" select o.id, o.orderNum, o.orderTime, o.peopleCount, o.orderDesc, o.payType, o.orderStatus, o.productId, o.memberId" +
            " from orders as o where o.id = #{id} ")
    public Orders findById (int id);
}
